package com.hutu.comment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 评论表
 * @TableName tb_comment
 */
@TableName(value ="tb_comment")
@Data
public class TbComment implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论，关联tb_editor_data
     */
    @TableField(value = "comment")
    private Integer comment;

    /**
     * 评论的question
     */
    @TableField(value = "question_id")
    private String questionId;

    /**
     * 回复的评论ID，为0则为问题的首评
     */
    @TableField(value = "reply_id")
    private Integer replyId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user")
    private String createUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}